[Ivy]
[>Created: Wed Jan 23 16:47:49 ICT 2013]
13C663BDF6058E21 3.17 #module
>Proto >Proto Collection #zClass
Ls0 LeftMenuProcess Big #zClass
Ls0 RD #cInfo
Ls0 #process
Ls0 @TextInP .ui2RdDataAction .ui2RdDataAction #zField
Ls0 @TextInP .rdData2UIAction .rdData2UIAction #zField
Ls0 @TextInP .resExport .resExport #zField
Ls0 @TextInP .type .type #zField
Ls0 @TextInP .processKind .processKind #zField
Ls0 @AnnotationInP-0n ai ai #zField
Ls0 @TextInP .xml .xml #zField
Ls0 @TextInP .responsibility .responsibility #zField
Ls0 @RichDialogInitStart f0 '' #zField
Ls0 @RichDialogProcessStep f3 '' #zField
Ls0 @PushWFArc f4 '' #zField
Ls0 @RichDialogEnd f5 '' #zField
Ls0 @PushWFArc f6 '' #zField
>Proto Ls0 Ls0 LeftMenuProcess #zField
Ls0 f0 guid 13C663BDF7B96BE4 #txt
Ls0 f0 type ch.ivy.demo.component.LeftMenu.LeftMenuData #txt
Ls0 f0 method start() #txt
Ls0 f0 disableUIEvents true #txt
Ls0 f0 inParameterDecl 'ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent methodEvent = event as ch.ivyteam.ivy.richdialog.exec.RdMethodCallEvent;
<> param = methodEvent.getInputArguments();
' #txt
Ls0 f0 outParameterDecl '<> result;
' #txt
Ls0 f0 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>start()</name>
    </language>
</elementInfo>
' #txt
Ls0 f0 86 54 20 20 13 0 #rect
Ls0 f0 @|RichDialogInitStartIcon #fIcon
Ls0 f3 actionDecl 'ch.ivy.demo.component.LeftMenu.LeftMenuData out;
' #txt
Ls0 f3 actionTable 'out=in;
' #txt
Ls0 f3 actionCode 'import javax.faces.application.FacesMessage;  
import javax.faces.context.FacesContext;  
import org.primefaces.component.menuitem.MenuItem;  
import org.primefaces.component.submenu.Submenu;  
import org.primefaces.model.DefaultMenuModel;  
import org.primefaces.model.MenuModel;  

in.leftMenuModel = new DefaultMenuModel();

if(in.currentUser != null) {
	if(in.currentUser.userRole.startsWith("dep")) {
		
	} else if(in.currentUser.userRole.startsWith("hr")){
		
	} else {
		
	}
	
}' #txt
Ls0 f3 type ch.ivy.demo.component.LeftMenu.LeftMenuData #txt
Ls0 f3 78 148 36 24 20 -2 #rect
Ls0 f3 @|RichDialogProcessStepIcon #fIcon
Ls0 f4 expr out #txt
Ls0 f4 96 74 96 148 #arcP
Ls0 f5 type ch.ivy.demo.component.LeftMenu.LeftMenuData #txt
Ls0 f5 guid 13C66C818F47E256 #txt
Ls0 f5 86 246 20 20 13 0 #rect
Ls0 f5 @|RichDialogEndIcon #fIcon
Ls0 f6 expr out #txt
Ls0 f6 96 172 96 246 #arcP
>Proto Ls0 .type ch.ivy.demo.component.LeftMenu.LeftMenuData #txt
>Proto Ls0 .processKind RICH_DIALOG #txt
>Proto Ls0 -8 -8 16 16 16 26 #rect
>Proto Ls0 '' #fIcon
Ls0 f0 mainOut f4 tail #connect
Ls0 f4 head f3 mainIn #connect
Ls0 f3 mainOut f6 tail #connect
Ls0 f6 head f5 mainIn #connect
